<?php
class ClsError extends ClsNaanalController
{
    public function __construct()
    {
        parent::__construct();
    }
    public function fatal()
    {
        if(!isset($this->arrConfigVar["error_list"][$this->switch]))
        {
            die("Requested error info not exist");
        }
        $error=$this->arrConfigVar["error_list"][$this->switch];
        $title=$error["title"];
        $message=$error["message"];
        return array("title"=>$title,"message"=>$message);
    }
    public function info()
    {
        
    }
    public function warning()
    {
        
    }
}
?>